Part Number Hot Search : 
3844B 345037 N8T97 345037 MM74C14M 10PT06A MAX97 80CNQ03
Product Description
Full Text Search
 

To Download ADXL345BCCZ1 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
 Preliminary Technical Data
FEATURES
Ultra low power: 25 to 130 A at VS = 2.5 V (typ) Power consumption scales automatically with bandwidth User selectable fixed 10-bit resolution or 4mg/LSB scale factor in all g-ranges, up to 13-bit resolution at 16 g 32 level output data FIFO minimizes host processor load Built in motion detection functions * Tap/Double Tap detection * Activity/Inactivity monitoring * Free-Fall detection Supply and I/O voltage range: 1.8 V to 3.6 V SPI (3 and 4 wire) and I2C digital interfaces Flexible interrupt modes - Any interrupt mappable to either interrupt pin Measurement ranges selectable via serial command Bandwidth selectable via serial command Wide temperature range (-40 to +85C) 10,000 g shock survival Pb free/RoHS compliant Small and thin: 3 x 5 x 1 mm LGA package
Three-Axis, 2/4/8/16g Digital Accelerometer ADXL345
GENERAL DESCRIPTION
The ADXL345 is a small, thin, low power, three-axis accelerometer with high resolution (13-bit) measurement up to 16 g. Digital output data is formatted as 16-bit twos complement and is accessible through either a SPI (3- or 4wire) or I2C digital interface. The ADXL345 is well suited for mobile device applications. It measures the static acceleration of gravity in tilt-sensing applications, as well as dynamic acceleration resulting from motion or shock. Its high resolution (4mg/LSB) enables resolution of inclination changes of as little as 0.25. Several special sensing functions are provided. Activity and inactivity sensing detect the presence or lack of motion and if the acceleration on any axis exceeds a user-set level. Tap sensing detects single and double taps. Free-Fall sensing detects if the device is falling. These functions can be mapped to interrupt output pins. An integrated 32 level FIFO can be used to store data to minimize host processor intervention. Low power modes enable intelligent motion-based power management with threshold sensing and active acceleration measurement at extremely low power dissipation. The ADXL345 is supplied in a small, thin 3 mm x 5 mm x 1 mm, 14-lead, plastic package.
APPLICATIONS
Handsets Gaming and pointing devices Personal navigation devices HDD protection Fitness equipment Digital cameras
FUNCTIONAL BLOCK DIAGRAM
Vs VDD I/O
POWER MANAGEMENT
A/D CONVERTER
3 AXIS SENSOR
SENSE ELECTRONICS
DIGITAL FILTER
CONTROL AND INTERRUPT LOGIC
INT1
INT2
SDA/SDI/SDIO
ADXL345
SERIAL I/O
SDO/ALT ADDRESS SCL/SCLK
COM
CS
Figure 1. ADXL345 Simplified Block Diagram
Rev. PrA
Information furnished by Analog Devices is believed to be accurate and reliable. However, no responsibility is assumed by Analog Devices for its use, nor for any infringements of patents or other rights of third parties that may result from its use. Specifications subject to change without notice. No license is granted by implication or otherwise under any patent or patent rights of Analog Devices. Trademarks and registered trademarks are the property of their respective owners.
One Technology Way, P.O. Box 9106, Norwood, MA 02062-9106, U.S.A. Tel: 781.329.4700 www.analog.com Fax: 781.461.3113 (c)2008 Analog Devices, Inc. All rights reserved.
ADXL345 TABLE OF CONTENTS
Features .............................................................................................. 1 Applications....................................................................................... 1 General Description ......................................................................... 1 Functional Block Diagram .............................................................. 1 Revision History ............................................................................... 2 Specifications..................................................................................... 3 Absolute Maximum Ratings............................................................ 4 ESD Caution.................................................................................. 4 Pin Configuration and Descriptions.............................................. 5 Typical performance characteristics .............................................. 6 Functional Description .................................................................... 7 Device Operation ......................................................................... 7 Power Sequencing ........................................................................ 7 Power Saving ................................................................................. 7 Serial Communications ................................................................... 9 SPI................................................................................................... 9
Preliminary Technical Data
I2C................................................................................................. 10 Interrupts..................................................................................... 11 FIFO ............................................................................................. 11 Self Test ........................................................................................ 12 Register Map ................................................................................... 13 Register Definitions ................................................................... 14 Application ...................................................................................... 18 Power Supply Decoupling ......................................................... 18 Mechanical Considerations for Mounting.............................. 18 Tap Detection.............................................................................. 18 Threshold .................................................................................... 19 Link Mode ................................................................................... 19 Recommended PWB Land Pattern.......................................... 20 Recommended Soldering Profile ............................................. 21 Outline Dimensions ....................................................................... 22 Ordering Guide .......................................................................... 22
REVISION HISTORY
11/08--Rev. PrA - Initial Version
Rev. PrA | Page 2 of 24
Preliminary Technical Data SPECIFICATIONS
TA = 25C, VS = 2.5 V, VDD I/O = 1.8 V, Acceleration = 0 g, unless otherwise noted. Table 1. Specifications1
Parameter SENSOR INPUT Measurement Range Nonlinearity Inter-Axis Alignment Error Cross-Axis Sensitivity2 OUTPUT RESOLUTION All g-ranges 2 g range 4 g range 8 g range 16 g range SENSITIVITY Sensitivity at XOUT, YOUT, ZOUT Scale Factor at XOUT, YOUT, ZOUT Sensitivity at XOUT, YOUT, ZOUT Scale Factor at XOUT, YOUT, ZOUT Sensitivity at XOUT, YOUT, ZOUT Scale Factor at XOUT, YOUT, ZOUT Sensitivity at XOUT, YOUT, ZOUT Scale Factor at XOUT, YOUT, ZOUT Sensitivity Change due to Temperature 0 g BIAS LEVEL 0 g Output (XOUT, YOUT, ZOUT) 0 g Offset vs. Temperature NOISE PERFORMANCE Noise (x-, y-axes) Noise (z-axis) OUTPUT DATA RATE / BANDWIDTH Measurement Rate3 SELF TEST Output Change X Output Change Y Output Change Z POWER SUPPLY Operating Voltage Range (VS) Interface Voltage Range (VDD I/O) Supply Current Supply Current Standby Mode Leakage Current Turn-On Time4 TEMPERATURE Operating Temperature Range WEIGHT Device Weight
1 2
ADXL345
Conditions Each axis User Selectable Percentage of full scale
Min
Typ 2, 4, 8, 16 0.5 0.1 1 10 10 11 12 13
Max
Unit g % Degrees % Bits Bits Bits Bits Bits
Each axis 10-bit mode Full-Resolution Full-Resolution Full-Resolution Full-Resolution Each axis VS = 2.5 V, 2 g 10-bit or Full-Resolution VS = 2.5 V, 2 g 10-bit or Full-Resolution VS = 2.5 V, 4 g 10-bit mode VS = 2.5 V, 4 g 10-bit mode VS = 2.5 V, 8 g 10-bit mode VS = 2.5 V, 8 g 10-bit mode VS = 2.5 V, 16 g 10-bit mode VS = 2.5 V, 16 g 10-bit mode Each axis VS = 2.5 V, TA = 25C
232 3.5 116 7.0 58 14.0 29 28.1
256 3.9 128 7.8 64 15.6 32 31.2 0.02 0 <1 <1 <1.5
286 4.3 143 8.6 71 17.2 36 34.3
LSB/g mg/LSB LSB/g mg/LSB LSB/g mg/LSB LSB/g mg/LSB %/C mg mg/C LSB RMS LSB RMS
-150
+150
Data Rate = 100 Hz, 2 g 10-bit or Full-Res. Data Rate = 100 Hz, 2 g 10-bit or Full-Res. User Selectable 0.1 +0.31 -0.31 +0.46 2.0 1.7 Data Rate > 100 Hz Data Rate < 10 Hz Data Rate = 3200 Hz -40
3200 +1.02 -1.02 +1.64 2.5 1.8 130 25 0.1 1.4 3.6 VS 150 2
Hz g g g V V A A A ms C mgrams
85 20
All minimum and maximum specifications are guaranteed. Typical specifications are not guaranteed. Cross-axis sensitivity is defined as coupling between any two axes. 3 Bandwidth is half the output data rate. 4 Turn-on and wake-up times are determined by the user defined bandwidth. At 100 Hz data rate the turn-on/wake-up time is approximately 11.1 ms. For additional data rates the turn-on/wake-up time is approximately + 1.1 in milliseconds, where is 1/(Data Rate).
Rev. PrA | Page 3 of 24
ADXL345 ABSOLUTE MAXIMUM RATINGS
Table 2. Absolute Maximum Ratings
Parameter Acceleration (Any Axis, Unpowered) Acceleration (Any Axis, Powered) VS VDD I/O All Other Pins Output Short-Circuit Duration (Any Pin to Ground) Temperature Range (Powered) Temperature Range (Storage) Rating 10,000 g 10,000 g -0.3 V to 3.6 V -0.3 V to 3.6 -0.3 V to 3.6 Indefinite -40C to +105C -40C to +105C
Preliminary Technical Data
Stresses above those listed under Absolute Maximum Ratings may cause permanent damage to the device. This is a stress rating only; functional operation of the device at these or any other conditions above those indicated in the operational section of this specification is not implied. Exposure to absolute maximum rating conditions for extended periods may affect device reliability.
ESD CAUTION
ESD (electrostatic discharge) sensitive device. Electrostatic charges as high as 4000 V readily accumulate on the human body and test equipment and can discharge without detection. Although this product features proprietary ESD protection circuitry, permanent damage may occur on devices subjected to high energy electrostatic discharges. Therefore, proper ESD precautions are recommended to avoid performance degradation or loss of functionality.
Rev. PrA | Page 4 of 24
Preliminary Technical Data PIN CONFIGURATION AND DESCRIPTIONS
ADXL345
SDO/ALT ADDRESS
Figure 2. Pin Configuration (Top View)
Table 3. Pin Descriptions
Pin No. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 Mnemonic VDD I/O GND Reserved GND GND VS CS INT1 INT2 GND Reserved SDO/ALT ADDRESS SDA/SDI/SDIO SCL/SCLK Description Digital Interface Supply Voltage Must be connected to ground Reserved, must be connected to VS or left open Must be connected to ground Must be connected to ground Supply Voltage Chip Select Interrupt 1 Output Interrupt 2 Output Must be connected to ground Reserved, must be connected to GND or left open Serial Data Out, Alternate I2C Address Select Serial Data (I2C), Serial Data In (SPI 4-Wire), Serial Data In/Out (SPI 3-Wire) Serial Communications Clock
Rev. PrA | Page 5 of 24
ADXL345 TYPICAL PERFORMANCE CHARACTERISTICS
Preliminary Technical Data
Rev. PrA | Page 6 of 24
Preliminary Technical Data FUNCTIONAL DESCRIPTION
DEVICE OPERATION
The ADXL345 is a complete three-axis acceleration measurement system with a selectable measurement range of either 2 g, 4 g, 8 g, or 16 g. It measures both dynamic acceleration resulting from motion or shock and static acceleration, such as gravity, which allows it to be used as a tilt sensor. The sensor is a polysilicon surface-micromachined structure built on top of a silicon wafer. Polysilicon springs suspend the structure over the surface of the wafer and provide a resistance against acceleration forces. Deflection of the structure is measured using differential capacitors that consist of independent fixed plates and plates attached to the moving mass. Acceleration deflects the beam and unbalances the differential capacitor, resulting in a sensor output whose amplitude is proportional to acceleration. Phase-sensitive demodulation is used to determine the magnitude and polarity of the acceleration.
ADXL345
additional power savings is desired, a lower power mode is available. In this mode, the internal sampling rate is reduced allowing for power savings in the 12.5 to 400Hz data rate range at the expense of slightly greater noise. To enter lower power mode, set the LOW_POWER bit(D4) in the BW_RATE register. Table 5. Current Consumption versus Data Rate
POWER SEQUENCING
Power may be applied to VS or VDD I/O in any sequence without damaging the ADXL345. All possible power on states are summarized in Table 4. The interface voltage level is set with the interface supply voltage VDD I/O, which must be present to ensure that the ADXL345 does not create a conflict on the communications bus. For single-supply operation, VDD I/O can be the same as the main supply, VS. Conversely, in a dual-supply application, VDD I/O can differ from VS to accommodate the desired interface voltage. Once VS is applied, the device enters standby state, where power consumption is minimized and the device waits for VDD I/O to be applied and a command to enter measurement state (setting the MEASURE bit in the POWER_CTL register). Clearing the MEASURE bit returns the device to standby state. Table 4. Power Sequencing
Condition Power Off Bus Enabled VS VDD I/O Description Completely off, potential for Off Off communications bus conflict. No functions available, but will not create Off On conflict on communications bus. At power up the device is in Standby mode awaiting a command to enter measurement mode and all sensor functions are off. Once instructed to enter Measurement mode, all sensor functions are available.
Output Data Bandwidth Rate Code Rate (Hz) (Hz) 3200 1600 1111 1600 800 1110 800 400 1101 400 200 1100 200 100 1011 100 50 1010 50 25 1001 25 12.5 1000 12.5 6.25 0111 6.25 3.125 0110 3.125 1.563 0101 1.563 0.782 0100 0.782 0.39 0011 0.39 0.195 0010 0.195 0.098 0001 0.098 0.048 0000
IDD (A)
130 80 130 130 130 130 80 55 37 25 25 25 25 25 25 25
The current consumption in Low Power Mode is shown in Table 6. Cases where there is no advantage to using Low Power Mode are shaded. Table 6. Current Consumption versus Data Rate in Low Power Mode Output Bandwidth Rate Code Data Rate (Hz) 3200 1600 1111 1600 800 1110 800 400 1101 400 200 1100 200 100 1011 100 50 1010 50 25 1001 25 12.5 1000 12.5 6.25 0111 6.25 3.125 0110 3.125 1.563 0101 1.563 0.782 0100 0.782 0.39 0011 0.39 0.195 0010 0.195 0.098 0001 0.098 0.048 0000 IDD (A)
130 80 130 80 55 37 30 25 25 25 25 25 25 25 25 25
Standby or On Measurement
On
POWER SAVING
Power Modes
The ADXL345 automatically modulates its power consumption proportionally with its output data rate as shown in Table 5. If
Rev. PrA | Page 7 of 24
ADXL345
Auto Sleep Mode
Preliminary Technical Data
Additional power can be saved by having the ADXL345 automatically switch to sleep mode during periods of inactivity. To enable this feature set the THRESH_INACT register to an acceleration value that signifies no activity (this value will depend on the application), set TIME_INACT to an appropriate inactivity time period (again, this will depend on the application), and set the AUTO_SLEEP bit and the LINK bit in the POWER_CTL register. Current consumption at the sub8Hz data rates used in this mode is typically 25 A.
Standby Mode
For even lower power operation Standby Mode can be used. In Standby Mode current consumption is reduced to 2A (typical). In this mode no measurements are made and communication with the ADXL345 is limited to single-byte read or writes. Standby Mode is entered by clearing the MEASURE bit (D3) in the POWER_CTL register. Placing the device into Standby Mode will preserve the contents of the FIFO.
Rev. PrA | Page 8 of 24
Preliminary Technical Data SERIAL COMMUNICATIONS
I C and SPI digital communications are available. In both cases, the ADXL345 operates as a slave. I2C mode is enabled if the CS pin is tied high to VDD I/O. In SPI mode, the CS pin is controlled by the bus master. In both SPI and I2C modes of operation, data transmitted from the ADXL345 to the master device should be ignored during writes to the ADXL345.
2
ADXL345
ADXL345
CS SDA/SDI/SDIO SDO SCL/SCLK D OUT PROCESSOR D OUT D IN/OUT
Figure 4. 3-Wire SPI connection
SPI
For SPI, either 3-wire or 4-wire configuration is possible, as shown in the connection diagrams in Figure 3 and Figure 4. Clearing the SPI bit in the DATA_FORMAT register selects 4-wire mode while setting the SPI bit selects 3-wire mode. The maximum SPI clock speed is 5 MHz, with 12 pF maximum loading and the timing scheme follows CPOL = 1, CPHA = 1.
ADXL345
CS SDA/SDI/SDIO SDO SCL/SCLK PROCESSOR D OUT D IN/OUT D IN D OUT
high at the end as shown in Figure 5. SCLK is the serial port clock and is supplied by the SPI master. It is stopped high when CS is high, during period of no transmission. SDI and SDO are the serial data in and out respectively. Data should be sampled at the rising edge of SCLK. To read or write multiple bytes in a single transmission, the Multi-Byte bit, located after the R/W bit in the first byte transfer, must be set. After the register addressing and the first byte of data, continued clock pulses will cause the ADXL345 to point to the next register for read or write. Continued clock pulses will continue to shift the register that is pointed to until the clock pulses are ceased and CS is de-asserted. To perform reads or writes on different, non-sequential registers, CS must be de-asserted between transmissions and the new register must be addressed separately. The timing diagram for 3-wire SPI reads or writes is shown in Figure 5. The 4-wire equivalents for SPI reads and writes are shown in Figure 6 and Figure 7 respectively.
tS tM tQUIET
Figure 3. 4-Wire SPI connection
CS is the serial port enable line, and is controlled by the SPI master. It must go low at the start of transmissions and back
tDELAY tSCLK
CS SCLK SDI SDO
tSETUP tHOLD tSDO
R/W MB A[5] A[4] A[3] A[2] A[1] A[0] D[7] D[6] D[5] D[4] D[3] D[2] D[1] D[0]
Figure 5. SPI 3-wire Timing Diagram
tDELAY tSCLK tS tM tQUIET
CS SCLK SDI SDO
tSETUP tHOLD tSDO
R/W MB A[5] A[4] A[3] A[2] A[1] A[0]
D[7] D[6]
D[5] D[4]
D[3] D[2]
D[1] D[0]
Figure 6. SPI 4-wire Read Timing Diagram
Rev. PrA | Page 9 of 24
ADXL345
tDELAY tSCLK tS tM
Preliminary Technical Data
tQUIET
CS SCLK SDI SDO
tSETUP tHOLD tSDO
R/W MB A[5] A[4] A[3] A[2] A[1] A[0] D[7] D[6] D[5] D[4] D[3] D[2] D[1] D[0]
Figure 7. SPI 4-wire Write Timing Diagram
Table 7. SPI Timing Specifications (TA = 25C, VS = 2.5V, VDD I/O = 1.8V)
Parameter Limit fSCLK tSCLK tDELAY tQUIET tS tM tSDO tSETUP tHOLD Unit Description 5 MHz max SPI clock frequency 1/(SPI clock frequency) Mark/space 200 ns min ratio for the SCLK input is 40/60 to 60/40 200 ns min falling edge to SCLK falling edge 200 ns min SCLK rising edge to rising edge 0.4 x tSCLK ns min SCLK low pulse width (space) 0.4 x tSCLK ns min SCLK high pulse width (mark) 8 ns max SCLK falling edge to SDO transition 10 ns min SDI valid before SCLK rising edge 10 ns min SDI valid after SCLK rising edge
for the device is 0x1D, followed by the read/write bit. This translates to 0x3A for write, 0x3B for read. An alternate I2C address of 0x53 (followed by the read/write bit) may be chosen by grounding the SDO pin (pin 12). This translates to 0xA6 for write, 0xA7 for read.
VDD I/O
ADXL345
CS SDA/SDI/SDIO SDO
SCL/SCLK
RP
RP
PROCESSOR
D IN/OUT
D OUT
06238- 007
I2C
With CS tied high to VDD I/O, the ADXL345 is in I2C mode, requiring a simple 2-wire connection as shown in Figure 8. The ADXL345 conforms to The I2C Bus Specification, Version 2.1, January 2000, available from Phillips Semiconductor. It supports standard (100 kHz) and fast (400 kHz) data transfer modes. Single or multiple byte read/writes are supported as shown in Figure 9. With the SDO pin high the 7 bit I2C address
Single Byte Write Master Start Slave Address + Write Slave Ack Multi-Byte Write Master Start Slave Address + Write Slave Ack Single Byte Read Master Start Slave Address + Write Slave Ack Multi-Byte Read Master Start Slave Address + Write Slave Ack 1 This Start is either a restart or a Stop followed by a Start
Figure 8. I2C Connection Diagram (Address = 0x53)
If other devices are connected to the same I2C bus, the nominal operating voltage level of these other devices cannot exceed VDD I/O by more than 0.3 V. Pull-up resistors, RP, should be in the range of 1k to 20k.
Register Address Ack Register Address Ack Register Address Ack Register Address Ack Start1 Start1
Data Ack Data Ack Slave Address + Read
Stop
Data Ack
Stop
NAck Ack Data Ack Ack Data
Stop
Slave Address + Read
NAck Data
Stop
Figure 9. I2C Timing Diagram
Rev. PrA | Page 10 of 24
Preliminary Technical Data
INTERRUPTS
The ADXL345 provides two output pins for driving interrupts: INT1 and INT2. Each of the interrupt functions are described in detail below. All functions can be used simultaneously, with the only limiting feature being that some functions may need to share interrupt pins. Interrupts are enabled by setting the appropriate bit in the INT_ENABLE register and are mapped to either the INT1 or INT2 pins based on the contents of the INT_MAP register. It is recommended that interrupts be configured with the interrupts disabled, preventing interrupts from being accidentally triggered during configuration. This can be done by writing a value of 0x00 to the INT_ENABLE register.
DATA_READY OVERRUN
ADXL345
OVERRUN is set when new data has replaced unread data. The precise operation of OVERRUN depends on the FIFO mode. In Bypass Mode, OVERRUN is set when new data replaces unread data in the DATAX, DATAY, and DATAZ registers. In all other modes, OVERRUN is set when the FIFO is filled. OVERRUN is cleared by reading the FIFO contents, and is automatically cleared when the data is read.
FIFO
The ADXL345 contains a 32 level FIFO that can be used to minimize host processor intervention. The FIFO has four modes as described in Table 15 in the Register Definitions section. Mode selection is made by setting the appropriate MODE bits in the FIFO_CTL register. Each FIFO mode is described below.
Bypass Mode
DATA_READY is set when new data is available and cleared when no new data is available.
SINGLE_TAP
SINGLE_TAP is set when single acceleration event that is greater than the value in the THRESH_TAP register occurs for a time shorter than specified in the DUR register.
DOUBLE_TAP
In Bypass Mode the FIFO is not operational and remains empty.
FIFO Mode
DOUBLE_TAP is set when two acceleration events that are greater than the value in the THRESH_TAP register occur that are shorter than the time specified in the DUR register, with the second tap starting after the time specified by the LATENT register and within the time specified in the WINDOW register. See the Tap Detection description in the Application section for more details.
ACTIVITY
In FIFO Mode data from X, Y, and Z measurements go into the FIFO. When the FIFO is filled to the level specified in SAMPLES (in the FIFO_CTL register), the WATERMARK interrupt is set. The FIFO will continue filling until it is full (32 X, Y, and Z samples) and then stop collecting data. After the FIFO has stopped collecting data the device still continues to operate, so features like Tap detection, for example, may still be used once the FIFO is full. The WATERMARK interrupt will continue to occur until the number of samples in the FIFO is less than the value of SAMPLES in the FIFO_CTL register.
Stream Mode
ACTIVITY is set when acceleration greater than the value stored in THRESH_ACT is experienced.
INACTIVITY
INACTIVITY is set when acceleration of less than the value stored in the THRESH_INACT register is experienced for longer than the time specified in the TIME_INACT register. The maximum value for TIME_INACT is 255 s.
FREE_FALL
In Stream Mode data from X, Y, and Z measurements go into the FIFO. When the FIFO is filled to the level specified in SAMPLES (in the FIFO_CTL register), the WATERMARK interrupt is set. The FIFO will continue filling, and will hold the latest 32 X, Y, and Z samples, discarding older data as new data arrives. The WATERMARK interrupt will continue to occur until the number of samples in the FIFO is less than the value of SAMPLES in the FIFO_CTL register.
Trigger Mode
FREE_FALL is set when acceleration of less than the value stored in the THRESH_FF register is experienced for longer than the time specified in the TIME_FF register. The FREE_FALL interrupt differs from INACTIVITY interrupt in that all axes always participate, the timer period is much smaller (1.28 s maximum) and it is always DC coupled.
WATERMARK
WATERMARK is set when the FIFO has filled up to the value stored in SAMPLES. It is cleared automatically when the FIFO is read and its content emptied below the value stored in SAMPLES.
In Trigger Mode, the FIFO fills and holds the latest 32 X, Y, and Z samples. Once a trigger event occurs (as described by the TRIG_SOURCE bit in the FIFO_CTL register), the FIFO will keep the last n samples (where n is the value specified by SAMPLES in the FIFO_CTL register) and then operate in FIFO mode, collecting new samples only when the FIFO is not full. Additional trigger events will not be recognized until Trigger Mode is reset. This can be done by setting the device in Bypass Mode, reading the FIFO_STATUS register and then setting the device back into Trigger Mode. The FIFO data should be read first, as placing the device into Bypass Mode will clear the FIFO.
Rev. PrA | Page 11 of 24
ADXL345
Retrieving Data from the FIFO
Preliminary Technical Data
Table 9. Self Test output in LSB for 4 g 10-bit
Vs = 2.5 V Min. X-Axis Y-Axis Z-Axis +40 -40 +60 Typ. Max. +130 -130 +210 Min. +70 -70 +105 Vs = 3.3 V Typ. Max. +225 -225 +365
FIFO data is read through the DATAX, DATAY and DATAZ registers. When the FIFO is in FIFO, Stream, or Trigger Modes, reads to the DATAX, DATAY, and DATAZ registers read data stored in the FIFO. Each time any data is read from the FIFO the oldest X, Y, and Z data is placed into the DATAX, DATAY and DATAZ registers. If a single byte read operation is performed, the remaining bytes worth of data will be lost. Therefore, all axes of interest should be read in a burst (or multi-byte) read operation. To ensure that the FIFO has completely popped, there must be at least 5 s between the end of reading the data registers, signified by the transition to register 0x38 from 0x37 or the CS pin going high, and the start of new reads of the FIFO or reading the FIFO_STATUS register. For SPI operation at 1.5 MHz or lower, the register addressing portion of the transmission is sufficient delay to ensure the FIFO has completely popped. It is necessary for SPI operation greater than 1.5 MHz to de-assert the CS pin to ensure a total of 5 s, which is at most 3.4 s at 5 MHz operation. This is not a concern when using I2C, as the communication rate is low enough to ensure a sufficient delay between FIFO reads.
Table 10. Self Test output in LSB for 8 g 10-bit
Vs = 2.5 V Min. X-Axis Y-Axis Z-Axis +20 -20 +30 Typ. Max. +65 -65 +105 Min. +35 -35 +52 Vs = 2.5 V Typ. Max. +113 -113 +183
Table 11. Self Test output in LSB for 16 g 10-bit
Vs = 2.5 V Min. X-Axis Y-Axis Z-Axis +10 -10 +15 Typ. Max. +33 -33 +53 Min. +17 -17 +26 Vs = 2.5 V Typ. Max. +57 -57 +92
SELF TEST
The ADXL345 incorporates a Self Test feature that effectively tests both its mechanical and electronic systems. When the Self Test function is enabled (via the SELF_TEST bit in the DATA_FORMAT register), an electrostatic force is exerted on the mechanical sensor. This electrostatic force moves the mechanical sensing element in the same manner as acceleration, and it is additive to the acceleration experienced by the device. This added electrostatic force results in an output change in the X, Y, and Z-axes. Because the electrostatic force is proportional to VS2, the output change varies with VS. The Self Test feature on the ADXL345 exhibits a bi-modal behavior which depends upon which phase of the clock Self Test is enabled. Due to this, a typical value for Self Test is not reported; however, the limits shown in Table 1 and below are valid for both potential values.
Table 8. Self Test output in LSB for 2 g and Full-Resolution
Vs = 2.5 V Min. X-Axis Y-Axis Z-Axis +80 -80 +120 Typ. Max. +260 -260 +420 Min. +140 -140 +210 Vs = 3.3 V Typ. Max. +455 -455 +730
Rev. PrA | Page 12 of 24
Preliminary Technical Data REGISTER MAP
Table 12. Register Map
ADXL345
Hex 0 1 to 1C 1D 1E 1F 20 21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38 39
Dec 0 1 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57
Name DEVID Reserved Reserved THRESH_TAP OFSX OFSY OFSZ DUR LATENT WINDOW THRESH_ACT THRESH_INACT TIME_INACT ACT_INACT_CTL THRESH_FF TIME_FF TAP_AXES ACT_TAP_STATUS BW_RATE POWER_CTL INT_ENABLE INT_MAP INT_SOURCE DATA_FORMAT DATAX0 DATAX1 DATAY0 DATAY1 DATAZ0 DATAZ1 FIFO_CTL FIFO_STATUS
Type R
Reset Value 11100101
R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R R/W R/W R/W R/W R R/W R R R R R R R R/W
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00001010 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
Description Device ID. Reserved. Do not access. Reserved. Do not access. Reserved. Do not access. Tap threshold X axis offset Y axis offset Z axis offset Tap duration Tap latency Tap window Activity threshold Inactivity threshold Inactivity time Axis enable control for ACT/INACT Free-fall threshold Free-fall time Axis control for Tap/Double Tap Source of Tap/Double Tap Data Rate and Power Mode control Power Save features control Interrupt enable control Interrupt mapping control Source of interrupts Data format control X axis data Y axis data Z axis data FIFO control FIFO status
Rev. PrA | Page 13 of 24
ADXL345
REGISTER DEFINITIONS
0x00 DEVID (read-only)
D7 1 D6 1 D5 1 D4 0 D3 0 D2 1 D1 0 D0 1
Preliminary Technical Data
0x23 WINDOW (read/write)
D7 MSB D6 D6 D5 D5 D4 D4 D3 D3 D2 D2 D1 D1 D0 LSB
DEVID holds a fixed device ID code of 0xE5 (345 octal).
WINDOW is an unsigned time value representing the amount of time after the expiration of LATENT during which a second tap can begin. The scale factor is 1.25 ms/LSB. A zero value will disable the Double Tap function.
0x1D THRESH_TAP (read/write)
D7 MSB D6 D6 D5 D5 D4 D4 D3 D3 D2 D2 D1 D1 D0 LSB
0x24 THRESH_ACT (read/write)
D7 MSB D6 D6 D5 D5 D4 D4 D3 D3 D2 D2 D1 D1 D0 LSB
THRESH_TAP holds the threshold value for tap interrupts. The data format is unsigned, so the magnitude of the tap event is compared to THRESH_TAP. The scale factor is 62.5 mg/LSB (i.e. 0xFF = +16 g). A zero value may result in undesirable behavior if Tap/Double Tap interrupts are enabled.
THRESH_ACT holds the threshold value for activity detection. The data format is unsigned, so the magnitude of the activity event is compared to THRESH_ACT. The scale factor is 62.5 mg/LSB. A zero value may result in undesirable behavior if Activity interrupt is enabled.
0x1E, 0x1F, 0x20 OFSX, OFSY, OFSZ (read/write)
D7 MSB D6 D6 D5 D5 D4 D4 D3 D3 D2 D2 D1 D1 D0 LSB
0x25 THRESH_INACT (read/write)
D7 MSB D6 D6 D5 D5 D4 D4 D3 D3 D2 D2 D1 D1 D0 LSB
OFSX/OFSY/OFSZ offer user offset adjustments in twoscompliment form with a scale factor of 15.6 mg/LSB (i.e. 0x7F = +2 g).
0x21 DUR (read/write)
D7 MSB D6 D6 D5 D5 D4 D4 D3 D3 D2 D2 D1 D1 D0 LSB
THRESH_INACT holds the threshold value for inactivity detection. The data format is unsigned, so the magnitude of the inactivity event is compared to THRESH_INACT. The scale factor is 62.5 mg/LSB. A zero value may result in undesirable behavior if Inactivity interrupt is enabled.
DUR is an unsigned time value representing the maximum time that an event must be above the THRESH_TAP threshold to qualify as a tap event. The scale factor is 625 s/LSB. A zero value will prevent Tap/Double Tap functions from working.
0x26 TIME_INACT (read/write)
D7 MSB D6 D6 D5 D5 D4 D4 D3 D3 D2 D2 D1 D1 D0 LSB
0x22 LATENT (read/write)
D7 MSB D6 D6 D5 D5 D4 D4 D3 D3 D2 D2 D1 D1 D0 LSB
LATENT is an unsigned time value representing the wait time from the detection of a tap event to the opening of the time window WINDOW for a possible second tap event. The scale factor is 1.25 ms/LSB. A zero value will disable the Double Tap function.
TIME_INACT is an unsigned time value representing the amount of time that acceleration must be below the value in THRESH_INACT for inactivity to be declared. The scale factor is 1 second/LSB. Unlike the other interrupt functions, which operate on unfiltered data(See Threshold description in Application section), the inactivity function operates on the filtered output data. At least one output sample must be generated for the inactivity interrupt to be triggered. This will result in the function appearing un-responsive if the TIME_INACT register is set with a value less than the time constant of the Output Data Rate. A zero value will result in an interrupt when the output data is below THRESH_INACT.
Rev. PrA | Page 14 of 24
Preliminary Technical Data
0x27 ACT_INACT_CONTROL (read/write)
D7 D6 D5 D4 D3 D2 D1 D0
ADXL345
0x2A TAP_AXES (read/write)
D7 0 D6 0 D5 0 D4 0 D3 SUPPRESS D2 D1 D0
ACT ACT_X ACT_Y ACT_Z INACT INACT_X INACT_Y INACT_Z AC/DC Enable Enable Enable AC/DC Enable Enable Enable
TAP_X TAP_Y TAP_Z Enable Enable Enable
X/Y/Z Enable: A `1' enables X, Y, or Z participation in activity or inactivity detection. A `0' excludes the selected axis from participation. If all of the axes are excluded, the function is disabled. AC/DC: A `0' = DC coupled operation and a `1' = AC coupled operation. In DC coupled operation, the current acceleration is compared with THRESH_ACT and THRESH_INACT directly to determine whether activity or inactivity is detected. In AC coupled operation for activity detection, the acceleration value at the start of activity detection is taken as a reference value. New samples of acceleration are then compared to this reference value and if the magnitude of the difference exceeds THRESH_ACT the device will trigger an activity interrupt. In AC coupled operation for inactivity detection, a reference value is used again for comparison and is updated whenever the device exceeds the inactivity threshold. Once the reference value is selected, the device compares the magnitude of the difference between the reference value and the current acceleration with THRESH_INACT. If the difference is below THRESH_INACT for a total of TIME_INACT, the device is considered inactive and the inactivity interrupt is triggered.
TAP_X/Y/Z Enable: A `1' in TAP_X, Y, or Z Enable enables X, Y, or Z participation in Tap detection. A `0' excludes the selected axis from participation in Tap detection. Setting the SUPPRESS bit suppresses Double Tap detection if acceleration greater than THRESH_TAP is present between taps. See Tap Detection in the Application Section for more details.
0x2B ACT_TAP_STATUS (read)
D7 X D6 D5 D4 D3 D2 D1 D0 ACT_X ACT_Y ACT_Z TAP_X TAP_Y TAP_Z ASLEEP Source Source Source Source Source Source
X/Y/Z Source: Indicate the first axis involved in a Tap or Activity event. A `1' corresponds to involvement in the event and a `0' corresponds to no involvement. They are not cleared, but overwritten by new data. ACT_TAP_STATUS should be read before clearing the interrupt. Disabling an axis from participation will clear the corresponding Source bit when the next Activity or Tap/Double Tap event occurs. ASLEEP: A `1' indicates that the part is in the Auto Sleep Mode. A `0' indicates that the part is not using Auto Sleep Mode. See the POWER_CTL description for more information on Auto Sleep Mode.
0x28 THRESH_FF (read/write)
D7 MSB D6 D6 D5 D5 D4 D4 D3 D3 D2 D2 D1 D1 D0 LSB
THRESH_FF holds the threshold value for Free-Fall detection. The data format is unsigned. The root-sum-square(RSS) value of all axes is calculated and compared to the value in THRESH_FF to determine if a free fall event may be occurring. The scale factor is 62.5 mg/LSB. A zero value may result in undesirable behavior if Free-Fall interrupt is enabled. Values between 300 and 600 mg (0x05 to 0x09) are recommended.
0x2C BW_RATE (read/write)
D7 X D6 X D5 X D4 LOW_POWER D3 D2 D1 D0
RATE
LOW_POWER: A `0' = Normal operation and a `1' = Reduced power operation with somewhat higher noise. (See Power Modes section for details). RATE: Selects device bandwidth and output data rate. See Table 5 and Table 6 for details. Default value is 0x0A, or 100 Hz Output Data Rate. An Output Data Rate should be selected that is appropriate for the communication protocol and frequency selected. Selecting too high of an Output Data Rate with a low communication speed will result in samples being discarded.
0x29 TIME_FF (read/write)
D7 MSB D6 D6 D5 D5 D4 D4 D3 D3 D2 D2 D1 D1 D0 LSB
TIME_FF is an unsigned time value representing the minimum time that the RSS value of all axes must be less than THRESH_FF to generate a Free-Fall interrupt. The scale factor is 5 ms/LSB. A zero value may result in undesirable behavior if Free-Fall interrupt is enabled. Values between 100 to 350 ms (0x14 to 0x46) are recommended.
Rev. PrA | Page 15 of 24
ADXL345
0x2D POWER_CTL (read/write)
D7 X D6 X D5 D4 D3 D2 D1 D0
D7 D6
Preliminary Technical Data
0x2E INT_ENABLE (read/write)
D5 D4 D3 D2 D1 D0
LINK AUTO_SLEEP MEASURE SLEEP
WAKEUP
DATA_READY SINGLE_TAP DOUBLE_TAP ACTIVITY INACTIVITY FREE_FALL WATERMARK OVERRUN
LINK: A `1' with both the activity and inactivity functions enabled will delay the start of the activity function until inactivity is detected. Once activity is detected, inactivity detection will begin and prevent the detection of activity. This bit serially links the activity and inactivity functions. When `0' the inactivity and activity functions are concurrent. Additional information can be found in the Application section under Link Mode. AUTO_SLEEP: A `1' sets the ADXL345 to switch to Sleep Mode when inactivity (acceleration has been below THRESH_INACT for at least TIME_INACT) is detected and the LINK bit is set. A `0' disables automatic switching to Sleep Mode. See SLEEP for further description. MEASURE: A `0' places the part into standby mode and a `1' places the part into measurement mode. The ADXL345 powers up in standby mode with minimum power consumption. SLEEP: A `0' puts the part into a normal mode of operation. A `1' places the part into Sleep Mode. This suppresses DATA_READY, stops sending data to the FIFO, and switches the sampling rate to one specified by the WAKEUP bits. In Sleep Mode, only the Activity function can be used. When clearing the LINK, AUTO_SLEEP, or SLEEP bits, it is recommended that the part be placed into Standby when clearing the bits and then re-enabling Measurement mode during a following write. This is done to ensure the device is properly biased if Sleep mode is manually disabled. Not toggling Measurement mode may result in the first few after LINK, AUTO_SLEEP, or SLEEP is cleared having additional noise, especially if the device was asleep when the bits were cleared. WAKEUP: Controls the frequency of readings in Sleep Mode as shown in Table 13 below:
Setting bits with a value of `1' in this register to enable their respective functions and generate interrupts. A value of `0' will prevent the functions from generating an interrupt. DATA_READY, WATERMARK, and OVERRUN bits only enable the interrupt output; the functions are always enabled. It is recommended that interrupts be configured before enabling their outputs.
0x2F INT_MAP (read/Write)
D7 D6 D5 D4 D3 D2 D1 D0
DATA_READY SINGLE_TAP DOUBLE_TAP ACTIVITY INACTIVITY FREE_FALL WATERMARK OVERRUN
Any `0' bits in this register send their respective interrupts to the INT1 pin. Bits set with a `1' send their respective interrupts to the INT2 pin. All selected interrupts for a given pin are ORed.
0x30 INT_SOURCE (read)
D7 D6 D5 D4 D3 D2 D1 D0
DATA_READY SINGLE_TAP DOUBLE_TAP ACTIVITY INACTIVITY FREE_FALL WATERMARK OVERRUN
Bits set with a `1' in this register indicate that their respective functions have triggered. A value of `0' indicates that the corresponding event has not occurred. DATA_READY, WATERMARK and OVERRUN bits will always be set if corresponding event occurs, regardless of INT_ENABLE, and are cleared by reading data from the DATAX/Y/Z registers. DATA_READY and WATERMARK may require multiple reads, as per the FIFO Mode descriptions in the FIFO section. Other bits are cleared by reading INT_SOURCE.
0x31 DATA_FORMAT (read/write)
Table 13. WAKEUP Rates
D1 0 0 1 1 D0 0 1 0 1 Frequency (Hz) 8 4 2 1
D7
D6
D5 INT_INVERT
D4 X
D3
D2
D1
D0
SELF_TEST SPI
FULL_RES JUSTIFY
RANGE
DATA_FORMAT controls the presentation of data at registers 0x32 to 0x37. All data, except 16 g range, must be clipped to avoid rollover. SELF_TEST: A `1' applies a Self Test force to the sensor causing a shift in the output data. A value of `0' disable Self Test.
Rev. PrA | Page 16 of 24
Preliminary Technical Data
SPI: A value of `1' sets the device to 3-wire SPI and a value of `0' sets the device to 4-wire SPI. INT_INVERT: A value of `0' sets the interrupts to Active High while a value of `1' sets the interrupts to Active Low. FULL_RES: When this bit is set with a value of `1' the device is in Full-Resolution Mode, where the output resolution increases with RANGE to maintain a 4 mg/LSB scale factor. When this bit is '0' the device is in 10-bit Mode and RANGE determine the maximum g-Range and scale factor. JUSTIFY: A `1' = Left (MSB) justified and a `0' = Right justified with sign extension. RANGE: Sets the g-Range based on Table 14 below. Table 14. g-Range Setting
D1 0 0 1 1 D0 0 1 0 1 g-Range 2 g 4 g 8 g 16 g
ADXL345
TRIGGER: A value of `0' sets the trigger event of Trigger Mode to INT1 and a value of `1' sets the trigger event to INT2. SAMPLES: Function depends on the FIFO Mode as shown in Table 16 below. Entering a value of zero in SAMPLES will immediately set the WATERMARK status bit in INT_SOURCE, regardless of FIFO mode. Undesirable operation may occur if a value of zero is used for SAMPLES when Trigger Mode is used.
Table 15. FIFO Modes
D7 D6 MODE Function 0 0 1 0 Bypass 1 FIFO The FIFO is bypassed FIFO collects up to 32 values then stops collecting data
0 Stream FIFO holds the last 32 data values. Once full, the FIFO's oldest data is lost as it is replaced with newer data 1 Trigger When triggered by the TRIGGER the FIFO holds the last 32 data values and stops when full.
1
0x32, 0x33 DATAX0, DATAX1 (read only)
D7 D6 D5 D4 D3 D2 D1 D0
Table 16. SAMPLES Functions
FIFO Mode Samples Function None Bypass
0x34, 0x35 DATAY0, DATAY1 (read only)
FIFO
D7 D6 D5 D4 D3 D2 D1 D0
Specifies how many FIFO entries are need to trigger a Watermark interrupt Specifies how many FIFO entries are need to trigger a Watermark interrupt Specifies how many FIFO samples before the trigger event are retained in the FIFO buffer
Stream
0x36, 0x37 DATAZ0, DATAZ1 (read only)
D7 D6 D5 D4 D3 D2 D1 D0
Trigger
0x39 FIFO_STATUS (read) These six bytes hold the output data for each axis. The output data is two's complement with DATAx0 as the LSByte and DATAx1 as the MSByte. The DATA_FORMAT register (0x31) controls the format of the data. It is recommended that a burst read of all of the registers is performed to prevent the change of data between reads of sequential registers.
D7 FIFO_TRIG D6 X D5 D4 D3 D2 D1 D0
ENTRIES
FIFO_TRIG: A `1' corresponds to a trigger event occurring while a `0' means that a FIFO trigger event has not yet occurred. ENTRIES: Reports how many data values are stored in the FIFO. To collect the data from the FIFO, access is through the standard DATAX, DATAY, and DATAZ registers. FIFO reads must be done in burst, or multi-byte, mode as each FIFO level is cleared after any read, single- or multi-byte, of the FIFO. The FIFO stores a maximum of 32 entries, which equates to a maximum of 33 entries available at any given time, due to the fact that an additional entry is available at the output filter of device.
0x38 FIFO_CTL (read/write)
D7 D6 D5 D4 D3 D2 SAMPLES D1 D0
FIFO_MODE TRIGGER
FIFO_MODE: Corresponds to the FIFO Mode as shown in Table 15 below.
Rev. PrA | Page 17 of 24
ADXL345 APPLICATION
POWER SUPPLY DECOUPLING
In many applications, a 0.1 F capacitor at VS and VDD I/O placed close to the ADXL345 supply pins adequately decouples the accelerometer from noise on the power supply. However, in applications where noise is present at the 50 kHz internal clock frequency, or any harmonic thereof, additional care in power supply bypassing is required because this noise may cause errors in acceleration measurement. If additional decoupling is necessary, a 10 resistor or ferrite in series with VS and an additional larger bypass capacitor (2.2 F or greater) at VS may be helpful. Care should be taken that the connection from the ADXL345 ground to the power supply ground be low impedance because noise transmitted through ground has an effect similar to noise transmitted through VS.
Preliminary Technical Data
until the opening of the time window, whose value is contained in the WINDOW register, for a possible second tap.
*
The interval time after the expiration of LATENT is defined by the WINDOW register and is the period of time during which a second tap must begin. The second tap need not finish before the end of WINDOW.
FIRST TAP
SECOND TAP
XHI BW
THRESHOLD (THRESHC)
TIME LIMIT FOR TAPS (DUR)
MECHANICAL CONSIDERATIONS FOR MOUNTING
The ADXL345 should be mounted on the PCB in a location close to a hard mounting point of the PCB to the case. Mounting the ADXL345 at an unsupported PCB location (that is, at the end of a "lever," or in the middle of a "trampoline"), as shown in Figure 10, may result in large apparent measurement errors because the accelerometer will see the resonant vibration of the PCB. Locating the accelerometer near a hard mounting point ensures that any PCB resonances at the accelerometer are above the accelerometer's mechanical sensor resonant frequency and, therefore, effectively invisible to the accelerometer.
ACCELEROMETER
LATENCY TIME (LATENT)
TIME WINDOW FOR SECOND TAP (INTVL)
INT
Figure 11. Tap Interrupt Function with Valid Single and Double Taps
PCB
If only the single tap function is in use, the single tap interrupt will trigger at the point that the acceleration goes below the threshold as long as DUR is not exceeded. If both single and double tap functions are in use the single tap interrupt will trigger once the double tap event has been either validated or invalidated. Several events can occur to invalidate the second tap of a double tap event. First, if the SUPPRESS bit in the TAP_AXES register is set, any acceleration spikes above the threshold during the LATENT time window will invalidate the double tap as seen in Figure 12.
INVALIDATES DOUBLE TAP IF SUPPRESS BIT SET
MOUNTING POINTS
Figure 10. Where Not to Mount an Accelerometer
TAP DETECTION
XHI BW
The tap interrupt function is capable of detecting either single or double taps. The following parameters are shown graphically in Figure 11 for a valid single and valid double tap event:
* * *
Tap detection threshold is defined by the THRESH_TAP register. Maximum tap duration time is defined by the DUR register. Tap latency time is defined by the LATENT register and is the waiting period from the end of the first tap
Rev. PrA | Page 18 of 24
TIME LIMIT FOR TAPS (DUR) LATENCY TIME (LATENT) TIME WINDOW FOR SECOND TAP (WINDOW)
06238-014
Figure 12. Double Tap event invalid due to high-g event with SUPPRESS set
06238-011
SINGLE TAP INTERRUPT
DOUBLE TAP INTERRUPT
Preliminary Technical Data
A double tap event can also be invalidated if an acceleration above the threshold is detected at the start of WINDOW, resulting in an invalid double tap at the start of WINDOW, shown in Figure 13. Additionally, a double tap event can be invalidated by having an acceleration exceed DUR, resulting in an invalid double tap at the end of DUR for the second tap event, also seen in Figure 13.
INVALIDATES DOUBLE TAP AT START OF WINDOW
ADXL345
THRESHOLD
The lower Output Data Rates are achieved by decimation of a common sampling frequency inside the device. The activity, free-fall and tap/double tap detection functions are performed using the un-filtered data. Since the output data is filtered, the high frequency and high-g data that is used to determine activity, free-fall and tap/double tap events may not be present if the output of the accelerometer is examined. This may result in trigger events appearing to occur when acceleration does not appear to trigger an event, such as exceeding a threshold or remaining below a threshold for a certain period of time.
XHI BW
LINK MODE
TIME LIMIT FOR TAPS (DUR) TIME LIMIT FOR TAPS (DUR) LATENCY TIME (LATENT) TIME WINDOW FOR SECOND TAP (WINDOW) TIME LIMIT FOR TAPS (DUR)
The LINK function can be used to reduce the number of activity interrupts the processor must service by only looking for activity after inactivity. For proper operation of the link feature, the processor must still respond to the activity and inactivity interrupts by reading the INT_SOURCE register to clear them. If the activity interrupt is not cleared, the part will not go into Auto Sleep Mode. The ASLEEP bit in the ACT_TAP_STATUS register indicates if the part is in Auto Sleep Mode.
XHI BW
INVALIDATES DOUBLE TAP AT END OF DUR
Figure 13. Tap Interrupt Function with Invalid Double Taps
Single taps, double taps, or both may be detected by setting their respective bits in the INT_ENABLE register. Control over participation of each of the three axes in tap/double tap detection is exerted by setting the appropriate bits in the TAP_AXES register. For the double tap function to operate, both LATENT and WINDOW must be non-zero. Every mechanical system will have somewhat different tap/double tap response based on the system's mechanical characteristics, so some experimentation with values for the LATENT, WINDOW, and THRESH_TAP registers will be required. In general a good starting point is LATENT>0x10, WINDOW>0x10, and THRESH_TAP>3g. Setting very low values in the LATENT, WINDOW, and/or THRESH_TAP registers may result in unpredictable response due to the accelerometer picking up "echoes" of the tap inputs. After a tap interrupt is received, the first axis to exceed the THRESH_TAP level is reported in the ACT_TAP_STATUS register. This register is never cleared, but overwritten with new data.
Rev. PrA | Page 19 of 24
ADXL345
RECOMMENDED PWB LAND PATTERN
3.3400 1.0500
Preliminary Technical Data
0.5500
0.2500 3.0500 0.3400 5.34
0.2500 1.1450
Figure 14. Recommended Printed Wiring Board Land Pattern (Dimensions Shown in Millimeters)
Rev. PrA | Page 20 of 24
06238-015
Preliminary Technical Data
RECOMMENDED SOLDERING PROFILE
TP RAMP-UP
ADXL345
tP
CRITICAL ZONE TL TO TP
TEMPERATURE
TL
TSMAX TSMIN
tL
tS
PREHEAT
RAMP-DOWN
t25C TO PEAK
TIME
Figure 15. Recommended Soldering Profile
Table 17. Recommended Soldering Profile1
Profile Feature Average Ramp Rate (TL to TP) Preheat Minimum Temperature (TSMIN) Maximum Temperature (TSMAX) Time (TSMIN to TSMAX)(tS) TSMAX to TL Ramp-Up Rate Time Maintained Above Liquidous (TL) Liquidous Temperature (TL) Time (tL) Peak Temperature (TP) Time Within 5C of Actual Peak Temperature (tP) Ramp-Down Rate Time 25C to Peak Temperature Sn63/Pb37 3C/sec max 100C 150C 60 sec to 120 sec 3C/sec max 183C 60 sec to 150 sec 240 + 0/-5C 10 sec to 30 sec 6C/sec max 6 minutes max Condition Pb-Free 3C/sec max 150C 200C 60 sec to 180 sec 3C/sec max 217C 60 sec to 150 sec 260 + 0/-5C 20 sec to 40 sec 6C/sec max 8 minutes max
Rev. PrA | Page 21 of 24
06238-016
ADXL345 OUTLINE DIMENSIONS
Preliminary Technical Data
1
Figure 35. 14-Lead Land Grid Array Package [LGA] 3 mm x 5 mm Body, Thick Quad Dimensions shown in millimeters Lead finish: matte tin
ORDERING GUIDE
Model ADXL345BCCZ1 ADXL345BCCZ-RL1 ADXL345BCCZ-RL71 EVAL-ADXL345Z1
1
Measurement Range 2, 4, 8, 16g 2, 4, 8, 16g 2, 4, 8, 16g
Specified Voltage (V) 2.5 2.5 2.5
Temperature Range -40C to +85C -40C to +85C -40C to +85C
Package Description 14-Lead Land Grid Array Package [LGA] 14-Lead Land Grid Array Package [LGA] 14-Lead Land Grid Array Package [LGA] Evaluation Board
Package Option TBD TBD TBD
Z = Pb-free part.
Rev. PrA | Page 22 of 24
Preliminary Technical Data NOTES
ADXL345
Rev. PrA | Page 23 of 24
ADXL345 NOTES
Preliminary Technical Data
(c)2008 Analog Devices, Inc. All rights reserved. Trademarks and registered trademarks are the property of their respective owners. PR07925-0-11/08(PrA)
Rev. PrA | Page 24 of 24


▲Up To Search▲   

 
Price & Availability of ADXL345BCCZ1

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X